home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 …ember: Reference Library / Dev.CD Dec 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / PR • Printing / PR18 Spool⁄Print Shared / PR18 Spool_Print Shared
Encoding:
Text File  |  1994-10-19  |  8.9 KB  |  9 lines

  1. PR 18 - The Effect of Spool-a-page/Print-a-page on Shared Printers
  2. Printing    
  3. Revised by:        March 1988
  4. Written by:    Ginger Jenigan    May 1987
  5. This technical note discusses drawbacks of using the spool-a-page/ print-a-page method of printing.
  6. The “spool-a-page/print-a-page” method of printing prints each page of a document as a separate job instead of calling PrPicFile to print the entire picture file. Many applications adopted this method of printing to avoid running out of disk space while the ImageWriter driver was spooling the document to disk. As long as you are printing to a directly connected ImageWriter, you’re fine, but if you are printing to remote or shared devices (like the AppleTalk ImageWriter and the LaserWriter), this method may create significant problems for the user.
  7. When a job is initiated by the application, the driver establishes a connection with the printer via AppleTalk. When the job is completed, the driver closes the connection, allowing another job the opportunity to print. If each page is a job in itself, then the connection is closed and reopened between each page, allowing another application to print between the pages of the document, which, as you might imagine, could present a significant problem. If two people are printing to the same AppleTalk ImageWriter at the same time and their applications use the “spool-a-page/print-a-page” method of printing, the pages of each document will be interleaved at the printer.
  8. Although there are good reasons for using this method of printing, it is only useful for a directly connected printer. From a compatibility point of view, this method of printing is built-in device dependence. Also, this method could create serious problems for other types of remote devices. Therefore, we are recommending that applications avoid using this method indiscriminately. You should check available disk space to see how much room you have before you print. If there isn’t enough space for your entire document, then print as much as you can (to minimize the interleaving) before starting another job. Whenever possible, applications should use the print loop described on page II-155 in The Printing Manager chapter of Inside Macintosh.
  9. Further Reference:
  10. •    Printing Manager
  11. •    Technical Note PR 4 — Optimizing for the LaserWriter—Techniques
  12. åHRˇ ˇˇˇˇRH°d WORDS †å°d WORDR…†Ç
  13. /ZÅ#
  14.     0Ià:µú9"{    ˇˇˇˇˇˇˇˇ#†ƒ°d
  15. ONLNf˛†å°d1drw2…-·_ġˇˇˇˇˇè°ñ x°ddrw2:°ddrw2:$°d4drw2:°öˇ˙ó@†ò,Times
  16. .WIQkWIQk+]BNew Technical Notes†ô°ddrw2:°„†ó°d1drw2eÙġˇˇˇˇˇP°ñ x°ddrw2:°ddrw2:$°d4drw2:°öˇ˚ÄE¿†ò
  17. Ä({ïDeveloper Support†ô°ddrw2:°„†ó°d`drw2-ÔˇˇˇˇˇˇKÔ- Z  ffZ°d1drw2 ¿˙ÈˇˇˇˇˇˇK°ñ x°ddrw2:°ddrw2:$°d4drw2:0°öˇÙĆò
  18. 0(UÔ†ô°ddrw2:°„†ó°d1drw2ÔÊ˙ˇˇˇˇˇˇ°ñ x°ddrw2:°ddrw2:$°d4drw2:    °öˇ˝Ä†ò
  19.     l+&    ®†ô°ddrw2:°„†ó°d1drw2Â-¯yˇˇˇˇˇˇ°ñ x°ddrw2:°ddrw2:$°d4drw2:°öˇ˚Ä%†ò
  20. BÄ(Z\    Macintosh†ô°ddrw2:°„†ó†ç°ddrw2D†É°dWORD†ç
  21. IR.°dONLNdéZ°–(úZ PR 18 - The °dONLNd é–°)v&Effect of Spool-a-page/Print-a-page on°dONLNd3†Z≥ÿ(ÆZShared Printers
  22. °dONLNdC≤Z¡ë*Printing
  23. °dONLNdMÕZŸí* Revised by:°dONLNdZÕ„Ÿ(÷„
  24. March 1988°dONLNdeŸZÂè(‚Z Written by:°dONLNdqŸ¢ÂÍ)HGinger Jenigan°dONLNdÄŸÏÂ(‚ÏMay 1987°dONLNdâÒZ˝È(˙ZPThis technical note discusses drawbacks of using the spool-a-page/ print-a-page °dONLNdŸÒÈ˝(˙È    method of°dONLNd„˝Z    É(Z    printing. X°dONLNdÌ"Z.*%RThe “spool-a-page/print-a-page” method of printing prints each page of a document °dONLNd?".(+as a°dONLNdD/Z;Ì(8Z separate job instead of calling ,
  25. Courier°dONLNdd.Ì:,)ì    PrPicFile°dONLNdm/,;á)? to print the entire °dONLNdÇ/á;)[picture file. Many applications°dONLNd¢;ZG≠(DZCadopted this method of printing to avoid running out of disk space °dONLNdÂ;≠G(D≠while the ImageWriter°dONLNd˚GZSÃ(PZdriver was spooling the °dONLNdGÃS)rEdocument to disk. As long as you are printing to a directly connected°dONLNdYSZ_.(\Z)ImageWriter, you’re fine, but if you are °dONLNdÇS._)‘.printing to remote or shared devices (like the°dONLNd±_Zk‡(hZAppleTalk ImageWriter and °dONLNdÀ_‡k)ÜAthe LaserWriter), this method may create significant problems for°dONLNd
  26. kZwÉ(tZ    the user.°dONLNdÉZèÍ*UWhen a job is initiated by the application, the driver establishes a connection with °dONLNdlÉÍè(åÍ the printer°dONLNdxèZõ£(òZvia AppleTalk. °dONLNdáè£õ)IMWhen the job is completed, the driver closes the connection, allowing another°dONLNd’õZßê(§ZDjob the opportunity to print. If each page is a job in itself, then °dONLNdõêß(§êthe connection is closed and°dONLNd6ßZ≥?(∞Z-reopened between each page, allowing another °dONLNdcß?≥)Â-application to print between the pages of the°dONLNdë≥ZøÎ(ºZSdocument, which, as you might imagine, could present a significant problem. If two °dONLNd‰≥Îø(ºÎ
  27. people are°dONLNdÔøZÀê(»Z printing to °dONLNd˚øêÀ)6Nthe same AppleTalk ImageWriter at the same time and their applications use the°dONLNdJÀZ◊ƒ(‘ZK“spool-a-page/print-a-page” method of printing, the pages of each document °dONLNdïÀƒ◊(‘ƒwill be interleaved°dONLNd©◊Z„ô(‡Zat the printer.°dONLNdπÔZ˚≈*IAlthough there are good reasons for using this method of printing, it is °dONLNdÔ≈˚(¯≈only useful for a°dONLNd˚Ze(Z:directly connected printer. From a compatibility point of °dONLNdN˚e(e&view, this method of printing is built°dONLNdt˚)≥-°dONLNduZg(Z5in device dependence. Also, this method could create °dONLNd™g(g#serious problems for other types of°dONLNdŒZ~(Zremote °dONLNd’~)$Qdevices. Therefore, we are recommending that applications avoid using this method°dONLNd'Z+î((Z?indiscriminately. You should check available disk space to see °dONLNdfî+((îhow much room you have°dONLNd}+Z7{(4Zbefore °dONLNdÑ+{7)!Vyou print. If there isn’t enough space for your entire document, then print as much as°dONLNd€7ZCÒ(@ZMyou can (to minimize the interleaving) before starting another job. Whenever °dONLNd(7ÒC(@Ò    possible,°dONLNd2CZO‰(LZapplications should use the °dONLNdNC‰O)ä;print loop described on page II-155 in The Printing Manager°dONLNdäOZ[å(XZ chapter of °dONLNdïOå[›)2Inside Macintosh°dONLNd•O›[·)Q.°dONLNdßZãƒ(àZFurther Reference: ãXã°dONLNd∫ålòp+
  28. •°dONLNdºå~ò–)Printing Manager°dONLNdÕòl§p(°l•°dONLNdœò~§≈)?Technical Note PR 4 — Optimizing for the LaserWriter—Techniques ¡X¡
  29. (÷ZBPR 18 - The Effect of Spool-a-page/Print-a-page on Shared Printers(÷1) of 1(ÏZPrintingˇ°¿Ù%%DSIDICT:_cv
  30. currentdict /bu known {bu}if
  31. userdict /_cv known not{userdict /_cv 30 dict put}if
  32. _cv begin
  33. /bdf{bind def}bind def
  34. currentscreen/cs exch def/ca exch def/cf exch def
  35. /setcmykcolor where{/setcmykcolor get /cvcmyk exch def}{/cvcmyk{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll}repeat setrgbcolor pop}bdf }ifelse
  36. /ss{//cf //ca //cs setscreen}bdf
  37. /stg{ss setgray}bdf
  38. /strgb{ss setrgbcolor}bdf
  39. /stcmyk{ss cvcmyk}bdf
  40. /min1{dup 0 eq{pop 1}if}bdf
  41. end
  42. currentdict /bn known {bn}if
  43. †ø